package top.haijunit.navi.auth.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import top.haijunit.framework.mybatis.domain.BasicEntity;
import top.haijunit.framework.servlet.annotation.Desensitize;
import top.haijunit.framework.servlet.annotation.DesensitizeType;

/**
 * 用户表
 */
@Data
@TableName(value = "repo_users")
public class UserEntity extends BasicEntity {

    /**
     * 用户ID
     */
    @TableField(value = "uniqCode", fill = FieldFill.INSERT)
    private Long userId;
    /**
     * 用户名
     */
    private String username;

    /**
     * 昵称
     */
    private String nickname;

    /**
     * 密码
     */
    @Desensitize(type = DesensitizeType.PASSWORD)
    private String userPassword;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 手机号码
     */
    private String phone;

}
